package com.ckx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ckx.domain.dto.MenuDto;
import com.ckx.domain.entity.Menu;
import com.ckx.domain.vo.MenuByRoleAddVo;
import com.ckx.domain.vo.MenuVo;

import java.util.List;

/**
 * 菜单权限表(Menu)表服务接口
 *
 * @author makejava
 * @since 2023-08-01 17:25:11
 */
public interface MenuService extends IService<Menu> {

    List<String> selectPermsByUserId(Long id);

    List<Menu> selectRouterMenuTreeByUserId(Long userId);

    List<MenuVo> selectAllMenus(String menuName, Integer status);

    void addMenu(MenuDto menuDto);

    MenuVo getMenuInfo(Long id);

    void updateMenu(MenuDto menuDto);

    void del4DelFlag(Long id);

    List<MenuByRoleAddVo> treeSelect();

    List<Long>  roleMenuTreeSelect(Long id);
}

